package com.lfy.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.system.common.mapper.BisOpinionMapper;
import com.system.common.pojo.BisOpinion;

@Service
public class BisOpinionServiceImpl implements BisOpinionService{
	
	@Autowired
	private BisOpinionMapper opinionMapper;

	@Override
	public List<BisOpinion> listAll(Map<?, ?> map) {
		return opinionMapper.listAll(map);
	}

	@Override
	public void delete(String opinionId) {
		opinionMapper.deleteByPrimaryKey(opinionId);
	}

	@Override
	public BisOpinion selectOpinion(String opinionId) {
		return opinionMapper.selectByPrimaryKey(opinionId);
	}

}
